import shutil
import zipfile

old_dir = r''
new_dir = r''

# 复制文件
# shutil.copy(old_file, new_file)

# shutil.copytree()

# 移动文件
# shutil.move(lod_file, new_file)

# 删除目录
# shutil.rmtree(dir)

# 压缩文件
with zipfile.ZipFile(r'D:\Disktop\新建文件夹\1.zip', 'w') as z:
    z.write(r"D:\Disktop\新建文件夹\基于Python的消除方块小游戏的设计与实现(3)(1)(1)(1).doc")
    z.close()
